package com.heihx.api.client.fallback;

import com.heihx.api.client.MealClient;
import com.heihx.result.Result;
import com.heihx.vo.DishVO;
import com.heihx.vo.SetmealVO;
import org.springframework.cloud.openfeign.FallbackFactory;

public class MealClientFallback implements FallbackFactory<MealClient> {
    @Override
    public MealClient create(Throwable cause) {
        return new MealClient() {
            @Override
            public Result<DishVO> getDishById(Long id) {
                return null;
            }

            @Override
            public Result<SetmealVO> getSetMealById(Long id) {
                return null;
            }

            @Override
            public Result<Long> countDish(Integer status) {
                return null;
            }

            @Override
            public Result<Long> countSetMeal(Integer status) {
                return null;
            }
        };
    }
}
